A Great Vim Cheat Sheet 您所在的位置:网站首页 linux directory structure cheat sheet A Great Vim Cheat Sheet

A Great Vim Cheat Sheet

2023-08-14 00:23| 来源: 网络整理| 查看: 265

A Great Vim Cheat Sheet

I’ve compiled a list of essential Vim commands that I use every day. I have then given a few instructions on how to make Vim as great as it should be, because it’s painful without configuration.

Essentials Cursor movement (Normal/Visual Mode) h j k l - Arrow keys w / b - Next/previous word W / B - Next/previous word (space seperated) e / ge - Next/previous end of word 0 / $ - Start/End of line ^ - First non-blank character of line (same as 0w) Editing text i / a - Start insert mode at/after cursor I / A - Start insert mode at the beginning/end of the line o / O - Add blank line below/above current line Esc or Ctrl+[ - Exit insert mode d - Delete dd - Delete line c - Delete, then start insert mode cc - Delete line, then start insert mode Operators Operators also work in Visual Mode d - Deletes from the cursor to the movement location c - Deletes from the cursor to the movement location, then starts insert mode y - Copy from the cursor to the movement location > - Indent one level


【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有